package com.tms.vehiclemanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.vehiclemanagement.mapper.VehiclemanagementMapper;
import com.tms.vehiclemanagement.domain.Vehiclemanagement;
import com.tms.vehiclemanagement.service.IVehiclemanagementService;

/**
 * 车辆管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-05
 */
@Service
public class VehiclemanagementServiceImpl implements IVehiclemanagementService 
{
    @Autowired
    private VehiclemanagementMapper vehiclemanagementMapper;

    /**
     * 查询车辆管理
     * 
     * @param id 车辆管理主键
     * @return 车辆管理
     */
    @Override
    public Vehiclemanagement selectVehiclemanagementById(String id)
    {
        return vehiclemanagementMapper.selectVehiclemanagementById(id);
    }

    /**
     * 查询车辆管理列表
     * 
     * @param vehiclemanagement 车辆管理
     * @return 车辆管理
     */
    @Override
    public List<Vehiclemanagement> selectVehiclemanagementList(Vehiclemanagement vehiclemanagement)
    {
        return vehiclemanagementMapper.selectVehiclemanagementList(vehiclemanagement);
    }

    /**
     * 新增车辆管理
     * 
     * @param vehiclemanagement 车辆管理
     * @return 结果
     */
    @Override
    public int insertVehiclemanagement(Vehiclemanagement vehiclemanagement)
    {
        return vehiclemanagementMapper.insertVehiclemanagement(vehiclemanagement);
    }

    /**
     * 修改车辆管理
     * 
     * @param vehiclemanagement 车辆管理
     * @return 结果
     */
    @Override
    public int updateVehiclemanagement(Vehiclemanagement vehiclemanagement)
    {
        return vehiclemanagementMapper.updateVehiclemanagement(vehiclemanagement);
    }

    /**
     * 批量删除车辆管理
     * 
     * @param ids 需要删除的车辆管理主键
     * @return 结果
     */
    @Override
    public int deleteVehiclemanagementByIds(String[] ids)
    {
        return vehiclemanagementMapper.deleteVehiclemanagementByIds(ids);
    }

    /**
     * 删除车辆管理信息
     * 
     * @param id 车辆管理主键
     * @return 结果
     */
    @Override
    public int deleteVehiclemanagementById(String id)
    {
        return vehiclemanagementMapper.deleteVehiclemanagementById(id);
    }
}
